This is my monthly report for 03-2021.

Some Info

This is really important information that people should read before looking at my output.

References:

These are the R packages I’m going to highlight:

#The report
library(rmarkdown)

#Tables
library(DT)
library(reactable)

#Plots
library(ggplot2)
library(plotly)

I’m going to get some unemployment data from FRED to demo.

source("../scripts/fred_script.R")
df <- fred_function(start_date = "2002-03-01", end_date = "2021-03-01")

Interactive Tables

with DT

The R package DT provides an R interface to the JavaScript library DataTables. R data objects (matrices or data frames) can be displayed as tables on HTML pages, and DataTables provides filtering, pagination, sorting, and many other features in the tables.

with reactable

Interactive data tables for R, based on the React Table library and made with reactR.

  • Features
  • Sorting, filtering, pagination
  • Grouping and aggregation
  • Built-in column formatting
  • Custom rendering via R or JavaScript — use Shiny HTML tags and HTML widgets in tables
  • Expandable rows and nested tables
  • Conditional styling
  • Works seamlessly within R Markdown documents and Shiny apps

Interactive or Fixed Plot